#include "dialogsettings.h"
#include "ui_dialogsettings.h"

DialogSettings::DialogSettings(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogSettings)
{
    ui->setupUi(this);
}

DialogSettings::~DialogSettings()
{
    delete ui;
}

void DialogSettings::setShare(int value)
{
    ui->spinBoxShare->setValue (value);
}

int DialogSettings::share() const
{
    return ui->spinBoxShare->value ();
}

void DialogSettings::setListSalesAfterDays(bool value)
{
    ui->checkBox->setChecked (value);
}

bool DialogSettings::listSalesAfterDays() const
{
    return ui->checkBox->isChecked ();
}
